package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-03-21
 * Time: 19:09
 */
abstract class Shape{//抽象类
//    public int age;
//    public void test(){
//
//    }
    public Shape(){

    }
    public abstract void draw();//抽象方法

}
abstract class Flower extends Shape {
    abstract public void test();

    public Flower() {
        super();
    }
}
class A extends Flower{
    @Override
    public void draw() {

    }

    @Override
    public void test() {

    }
}
class B extends A{
    public void mm(){

    }
}
class Cycle extends Shape{
    @Override
    public void draw() {
        System.out.println("yuan");
    }
}
class Rect extends Shape{
    @Override
    public void draw() {
        System.out.println("fang");
    }
}
public class Test2 {
    public static void main(String[] args) {

    }
}
